package fun.easycode.webterminal.common.contract;

public enum ErrorCode implements Enumerator<String>{
    Success("Success", "成功"),
    GeneralError("GeneralError", "通用错误");

    private final String value;
    private final String desc;

    ErrorCode(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

    @Override
    public String getValue() {
        return this.value;
    }
}
